using Common;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnesSystem.Models
{
    public class ConfigUnitsModel : ObservableObject
    {
        private ObjectId _id;
        private string name;
        private string code;
        private int proportion=1;
        private string unitTypeCode;
        private int position;
        private bool deleted;

      
        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }
        public string Code
        {
            get
            {
                return code;
            }

            set
            {
                code = value;
                RaisePropertyChanged("Code");
            }
        }
        public string UnitTypeCode
        {
            get
            {
                return unitTypeCode;
            }

            set
            {
                unitTypeCode = value;
                RaisePropertyChanged("UnitTypeCode");
            }
        }
        public int Position
        {
            get
            {
                return position;
            }

            set
            {
                position = value;
                RaisePropertyChanged("Position");
            }
        }
        public bool Deleted
        {
            get
            {
                return deleted;
            }

            set
            {
                deleted = value;
                RaisePropertyChanged("Deleted");
            }
        }

        public ObjectId Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
                RaisePropertyChanged("Id");
            }
        }

        public int Proportion
        {
            get
            {
                return proportion;
            }

            set
            {
                proportion = value;
                RaisePropertyChanged("Proportion");
            }
        }
    }
}